<html>

<head>
	<link rel="stylesheet" href="bootstrap-theme.css">
	<link rel="stylesheet" href="bootstrap-theme.min.css">
	<link rel="stylesheet" href="bootstrap.min.css">
	<link rel="stylesheet" href="bootstrap.css">
	<link rel="stylesheet" href="DIY.css">


</head>
<?php
 include('class.php');
 session_start();
 $name=$_SESSION['name'];
 $id=$_SESSION['id'];
 $db=new DB();
 $result=$db->getAssignment($name,$id);
 $db->close();
?>

	<body>
		<ul class="nav nav-tabs">
			<li role="presentation"><a href="User.php">Staff Information</a></li>
			<li role="presentation"><a href="CheckAttendanceForStaff.php">Check Attendance</a></li>
			<li role="presentation"><a href="Attendancechart.php">Attendance Statistics</a></li>
			<li role="presentation" class="active"><a href="DailyAssignmentForStaff.php">Daily Assignment</a></li>
			<li role="presentation"><a href="BulletinForStaff.php">Bulletin</a></li>
			<a class="logout" href="Logout.php">Log out</a>
			<label class="logout">Company Name</label>

		</ul>
		<?php
while($row=mysql_fetch_array($result)){
?>
		<form action="finishAssignment.php">
			<div class="container6">


				<div class="panel panel-default">

				</div>
				<div class="panel panel-default container5">
					<div class="panel-heading">
						<h3 class="panel-title fonth3">Daily Assignment</h3>
					</div>
					<div class="panel-heading">
						<h3 class="panel-title fonth3">Date：&nbsp;&nbsp;
							<?php echo $row['date'];$_SESSION['shijian']=$row['date'];?>
						</h3>
					</div>
					<div class="panel-heading">
						<h3 class="panel-title fonth3">Manager：&nbsp;&nbsp;
							<?php echo $row['mname']?>
						</h3>
					</div>
					<div class="panel-body">
						<p>&nbsp;&nbsp;
							<?php echo $row['content']?>
						</p>
					</div>

				</div>
				<div class="btn-group btn-group-lg sendButton" role="group" aria-label="...">
					<button style="width:80px;height:30px;margin-left:400px;">Finish</button>
				</div>
			</div>
		</form>
		<?php
}
?>
	</body>

</html>
